package org.budo.poi.util;

import org.apache.poi.hssf.usermodel.HSSFCell;

/**
 * Cell工具
 * 
 * @author limingwei
 */
public class HssfCellUtil {
    public static String getStringCellValue(HSSFCell cell) {
        if (null == cell) {
            return "";
        }

        try {
            return cell.getStringCellValue();
        } catch (Exception e) {
            return cell.getNumericCellValue() + "";
        }
    }
}